const express = require('express');
const app = express();

app.use('/',express.static('wwwroot'));
app.use(express.urlencoded({extended:true}));

// 用户
app.use('/user',require('./routers/user'));

// 店铺
app.use('/shop',require('./routers/shop'));

// 店铺详情页
app.use('/shopDetail',require('./routers/shopDetail'));

// 购物车
app.use('/cart',require('./routers/cart'));

// 订单
app.use('/order',require('./routers/order'));


app.listen('3000',function(){
    console.log('success running server http://localhost:3000');
})